package com.hotel.mapper;

import com.hotel.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface QtMapper {
    @Select("select * from user")
    List<User> findAll();

    List<User> findQtListByPage(@Param("start") int start,
                                @Param("size") int size,
                                @Param("query") String query);

    @Select("select count(1) from user")
    Long getTotal();


}
